import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      redirect: '/home',
    },
    {
      path: '/home',
      name: 'home',
      // route level code-splitting
      // this generates a separate chunk (About.[hash].js) for this route
      // which is lazy-loaded when the route is visited.
      component: () => import('../views/home/HomePage.vue'),
    },

    // {
    //   path: '/administration',
    //   name: 'administration',

    //   component: () => import('../views/administration/Administration.vue'),
    // },
    // {
    //   path: '/explain',
    //   name: 'ExplainList',

    //   component: () => import('../views/explain/explainlist/ExplainList.vue'),
    // },
    // {
    //   path: '/explaindetail/:iid',
    //   name: 'ExplainDetail',

    //   component: () => import('../views/explain/explaindetail/ExplainDetail.vue'),
    // },
    // {
    //   path: '/testbank',
    //   name: 'testbank',

    //   component: () => import('../views/testbank/TestBank.vue'),
    // },
    // {
    //   path: '/testbankdetail/:nid',
    //   name: 'testbankdetail',

    //   component: () => import('../views/testbank/adminbank/adminbankdetail/AdminBankDetail.vue'),
    // },
    // {
    //   path: '/testanswer/:iid',
    //   name: 'testanswer',

    //   component: () => import('../views/testbank/adminbank/testanswer/TestAnswer.vue'),
    // },

    // {
    //   path: '/testexplaindetail/:nid',
    //   name: 'testexplaindetail',

    //   component: () => import('../views/testbank/explianbank/explainbankdetail/ExplainDetail.vue'),
    // },

    // {
    //   path: '/about',
    //   name: 'about',

    //   component: () => import('../views/about/About.vue'),
    // },
    // {
    //   path: '/admindetail/:iid',
    //   name: 'AdminDetail',

    //   component: () => import('../views/administration/admindetail/AdminDetail.vue'),
    // },
    // {
    //   path: '/searchadmin',
    //   name: 'searchadmin',

    //   component: () => import('../views/search/SearchAdmin.vue'),
    // },
    // {
    //   path: '/job',
    //   name: 'job',

    //   component: () => import('../views/job/JobInformation.vue'),
    // },
    // {
    //   path: '/jobdetail',
    //   name: 'jobdetail',

    //   component: () => import('../views/job/jobdetail/JobDetail.vue'),
    //   children: [
    //     {
    //       path: '/jobdetail/xingzheng:xiid',
    //       name: 'xingzheng',
    //       component: () => import('../views/job/jobdetail/jobdetailsub/JobDetailXingzheng.vue'),
    //     },
    //     {
    //       path: '/jobdetail/shiye/:siid',
    //       name: 'shiye',
    //       component: () => import('../views/job/jobdetail/jobdetailsub/JobDetailShiye.vue'),
    //     },
    //     {
    //       path: '/jobdetail/guoqi/:giid',
    //       name: 'guoqi',
    //       component: () => import('../views/job/jobdetail/jobdetailsub/JobDetailGuoqi.vue'),
    //     },
    //   ],
    // },
  ],
})

export default router